package cn.niit.service;

import cn.niit.entity.Student;
import cn.niit.entity.Teacher;
import cn.niit.entity.query.StudentQuery;
import cn.niit.entity.query.TeacherQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * 教师表(Teacher)表服务接口
 *
 * @author makejava
 * @since 2021-11-14 16:07:57
 */
public interface TeacherService {

    PageInfo<Teacher> queryByTeacher(TeacherQuery teacherQuery);
    PageInfo<Teacher> queryByTeacherName(TeacherQuery teacherQuery);

    PageInfo<Teacher> select(TeacherQuery teacherQuery);
    boolean editTeacher(Teacher teacher);
    //根据学号查询学生
    Teacher queryTeacherById(Integer id);
    /**
     * 新增数据
     *
     * @param teacher 实例对象
     * @return 实例对象
     */
    boolean addTeacher(Teacher teacher);



    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteTeacherById(Integer id);

}